package com.clkj.zhonghui.pojo.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 * @date 2024-07-11 11:13:07
 * 订单详情表
 */
@ApiModel( value ="t_zh_order" )
@Table( name ="t_zh_order" )
public class Order  implements Serializable {

    @Id
   	@Column(name = "order_id",updatable = false )
	@ApiModelProperty( value="null")
	private Integer orderId;

	/**
	 * 商品ID
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="商品ID")
	private Integer productId;

	/**
	 * 规格ID
	 */
   	@Column(name = "format_id" )
	@ApiModelProperty( value="规格ID")
	private Integer formatId;

	/**
	 * 商品单价
	 */
   	@Column(name = "product_price" )
	@ApiModelProperty( value="商品单价")
	private Double productPrice;

	/**
	 * 购买数量
	 */
   	@Column(name = "product_num" )
	@ApiModelProperty( value="购买数量")
	private Integer productNum;

	/**
	 * 订单编号
	 */
   	@Column(name = "order_number" )
	@ApiModelProperty( value="订单编号")
	private String orderNumber;

	/**
	 * 评价状态 0未评价 1已评价
	 */
   	@Column(name = "product_status" )
	@ApiModelProperty( value="评价状态 0未评价 1已评价")
	private Integer productStatus;

   	@Transient
    private String productName;

    @Transient
    private String formatName;

    @Transient
    private String formatImg;

  public Integer getOrderId() {
    return orderId;
  }

  public void setOrderId(Integer orderId) {
    this.orderId = orderId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public Integer getFormatId() {
    return formatId;
  }

  public void setFormatId(Integer formatId) {
    this.formatId = formatId;
  }


  public Double getProductPrice() {
    return productPrice;
  }

  public void setProductPrice(Double productPrice) {
    this.productPrice = productPrice;
  }


  public Integer getProductNum() {
    return productNum;
  }

  public void setProductNum(Integer productNum) {
    this.productNum = productNum;
  }


  public String getOrderNumber() {
    return orderNumber;
  }

  public void setOrderNumber(String orderNumber) {
    this.orderNumber = orderNumber;
  }


  public Integer getProductStatus() {
    return productStatus;
  }

  public void setProductStatus(Integer productStatus) {
    this.productStatus = productStatus;
  }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getFormatName() {
        return formatName;
    }

    public void setFormatName(String formatName) {
        this.formatName = formatName;
    }

    public String getFormatImg() {
        return formatImg;
    }

    public void setFormatImg(String formatImg) {
        this.formatImg = formatImg;
    }
}
